package com.lab.labspring.req;


import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


public class PageReq implements Serializable {

    @NotNull(message = "【页码】不能为空")
    public Integer page;

    @NotNull(message = "【每页条数】不能为空")
    @Max(value = 100, message = "【每页条数】不能超过100")
    public Integer size;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
